package com.ribbon.lcn.servicea.controller;

import com.ribbon.lcn.servicea.service.BusinessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("storage")
public class TestController {
    @Autowired
    private BusinessService businessService;

    @RequestMapping("test1")
    public String test(){
        businessService.purchase("111","AAAAA",5);//库存
        return "service-a";
    }
}